<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>溢出属性</title>
	</head>
	<style>
		/* 溢出产生：子元素大于父元素【宽与高】 */
		div{
			width: 400px;
			height: 100px;
			border: 1px solid red;
			/* 溢出：找到父元素，加溢出处理属性:方案属性值： 
			                     hidden   溢出隐藏
								 scroll   溢出滚动  【页面滚动条:父元素宽高小于子元素：XY】
								 visible  默认：正常显示
								 auto     自动切换以上状态
			*/
			overflow: hidden;
			overflow: scroll; /*X Y两个方向*/
			overflow: visible;
			overflow: auto;
			/* overflow-x overflow-y  功能：去掉某侧滚动条 */
			overflow-x: scroll;
			overflow-y: hidden;
		}
		p{
			width: 800px;
		}
	</style>
	<body>
		<!-- 外层：div  理解：水杯 -->
		<div>
			<!-- 内层：p  理解：水 -->
			<p>
				<img src="../img/p_small_001.jpg" alt="1">
				<img src="../img/p_small_002.jpg" alt="2">
				<img src="../img/p_small_003.jpg" alt="3">
				<img src="../img/p_small_004.jpg" alt="4">
				<img src="../img/p_small_005.jpg" alt="5">
				<img src="../img/p_small_006.jpg" alt="6">
				<img src="../img/p_small_007.jpg" alt="7">
			</p>
		</div>
	</body>
</html>